/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.osdtsystem.hierarchy.io;

import java.io.IOException;
import java.io.Reader;
import java.io.Writer;
import org.osdtsystem.hierarchy.Hierarchy;

/**
 * Abstract hierarchy reader.
 * @author Matthias Buch-Kromann
 */
public abstract class AbstractHierarchyIO {
    public Hierarchy<?> read(HierarchyManager manager, Reader reader) 
            throws IOException
    {
        throw new UnsupportedOperationException("This HierarchyReader has not " +
                "implemented methods that support reading from reader " + reader);
    }

    public Hierarchy<?>[] write(HierarchyManager manager, Hierarchy<?> hierarchy, Writer writer) 
            throws IOException 
    {
        throw new UnsupportedOperationException("This HierarchyWriter has not " +
                "implemented methods that support writing hierarchy "
                + hierarchy + " to writer " + writer);
    }
}
